class CreateSections < ActiveRecord::Migration
  def self.up
    create_table :sections do |t|
      t.column  :title,         :string
      t.column  :start_time,    :time
      t.column  :end_time,      :time
      t.column  :days,          :string
      t.column  :building,      :string
      t.column  :room,          :string
      t.column  :instructor_id, :integer, :null => false
      t.column  :course_id,     :integer, :null => false
      t.column  :semester_id,   :integer, :null => false
      t.column  :registered,    :boolean, :default => false
      t.column  :full,          :boolean, :default => false
    end
  end

  def self.down
    drop_table :sections
  end
end
